package com.game.framework.dao.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document("AccountEntity")
@TableName( value ="tf_account" )
public class AccountEntity extends BaseEntity<Long> {

    @TableField(value = "user_id")
    private long userId;

    @TableField(value = "account")
    private String account;

    @TableField(value = "password")
    private String password;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableField(value = "last_logout_time")
    private Date lastLogoutTime;

    @TableField(value = "register_ip")
    private String registerIp;
}
